package ar.edu.unq.tpi.uis.tepe3.wicket;

import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.settings.IResourceSettings;
import org.apache.wicket.util.resource.locator.IResourceStreamLocator;

import ar.edu.unq.tpi.uis.tepe3.wicket.pages.HomePage;
import ar.edu.unq.tpi.uis.tepe3.wicket.pages.NewUserPage;

/**
 * Application object for your web application. If you want to run this application without deploying, run the Start class.
 * 
 * @see wicket.myproject.Start#main(String[])
 */
public class WicketApplication extends WebApplication
{    
	
	protected void init() {
		super.init();

		// the full path to your folder, relative to the context root
		this.getResourceSettings().addResourceFolder("pages");
		//this.getResourceSettings().addResourceFolder("styles");

		IResourceSettings resourceSettings = getResourceSettings();
		resourceSettings.addResourceFolder("pages");
		//resourceSettings.addResourceFolder("styles");
		resourceSettings.setResourceStreamLocator((IResourceStreamLocator) new PathStripperLocator());
	}
    /**
     * Constructor
     */
	public WicketApplication()
	{
	}
	
	/**
	 * @see wicket.Application#getHomePage()
	 */
	public Class getHomePage()
	{
		return HomePage.class;
	}

}
